package com.fire.control.system.dto.app;

import java.io.Serializable;

import com.fire.control.system.entity.File;

public class AppFileVo implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String id;
	
	private String url;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public void set(File file) {
		if(file != null) {
			this.id = file.getId();
			this.url = file.getPhysicalAddress();  //实际上这里应该是file.getAccessAddress();
		}
	}
}
